package com.crazy.crazymodel.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * @Date: 2024-05-06-15:02
 * @Author: Zheng Zeliang
 * 客户表
 */
@TableName(value = "customer")
@Data
public class Customer implements Serializable {
    /**
     * 客户ID
     */
    @TableId(value = "customerID")
    private Integer customerID;
    /**
     * 客户name
     */
    private String name;

    /**
     * 客户类型，0表示个人，1表示企业
     */
    private Integer customerType;

    /**
     * 客户身份证号/企业注册号
     */
    private String idNumber;

    /**
     * 客户职业
     */
    private String occupation;

    /**
     * 客户收入水平
     */
    private String incomeLevel;

    /**
     * 客户总资产
     */
    private BigDecimal totalAssets;

    /**
     * 客户余额
     */
    private BigDecimal balance;

    /**
     * 客户地址
     */
    private String address;

    /**
     * 客户联系方式
     */
    private String contactInfo;

    /**
     * 客户风险承受能力等级
     */
    private Integer riskToleranceScore;

    /**
     * 客户风开户时间
     */
    private Date openTime;

    /**
     * 申请编号
     */
    private Integer applicationID;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Customer() {
        this.customerID = null;
        this.name = null;
        this.customerType = null;
        this.idNumber = null;
        this.occupation = null;
        this.incomeLevel = null;
        this.totalAssets = null;
        this.address = null;
        this.contactInfo = null;
        this.riskToleranceScore = null;
        this.openTime = null;
    }

    public Customer(Integer customerID, String customerName, Integer customerType, String idNumber, String occupation, String incomeLevel, BigDecimal totalAssets, BigDecimal balance, String address, String contactInfo, Integer riskToleranceScore, Date openTime) {
        this.customerID = customerID;
        this.name = customerName;
        this.customerType = customerType;
        this.idNumber = idNumber;
        this.occupation = occupation;
        this.incomeLevel = incomeLevel;
        this.totalAssets = totalAssets;
        this.address = address;
        this.contactInfo = contactInfo;
        this.riskToleranceScore = riskToleranceScore;
        this.openTime = openTime;
    }
}
